package com.twu.bibilioteca;

import javax.security.sasl.AuthorizeCallback;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/12/14
 * Time: 5:30 PM
 * To change this template use File | Settings | File Templates.
 */
public class Book {

    private  String title;
    private String author;
    private  int publishedYear;
    private boolean isCheckedOut ;


    public Book(String title ,   String author , int publishedYear , boolean  isCheckedOut)
    {
        this.title = title;
        this.author = author;
        this.publishedYear = publishedYear;
        this.isCheckedOut = false;
    }

    public  String getTitle()
    {
        return title;
    }

    public  String getAuthor()
    {
        return author;
    }
    public  Integer getPublishedYear()
    {
        return publishedYear;
    }

    public  boolean isCheckedOut()
    {
        return isCheckedOut;
    }



    



    public void markAsCheckedOut() {
       isCheckedOut= true;

    }

    public void markAsReturned() {
       isCheckedOut= false;
    }
}
